class CreateParamResoults < ActiveRecord::Migration
  def self.up
    create_table :param_resoults do |t|
      t.integer :temp_examination_resoult_id
      t.integer :examination_resoult_id
      t.decimal :resoult
      t.boolean :is_ok, :default => false, :null => false
      t.integer :param_norm_id
      t.string :description
      t.timestamps
    end

#    ParamResoult.create :temp_examination_resoult_id => 1,
##      :examination_resoult_id => 1,
#      :resoult => 6,
#      :is_ok => false,
#      :param_norm_id => 1,
#      :description => "wynik"
  end

  def self.down
    drop_table :param_resoults
  end
end
